package com.settlement.system.parse.formula;

/**
 * 订单稽核占位符的枚举
 *
 * @author Ximi
 * @since 2020/10/09
 */
public enum OrderPlaceHoldEunm {
    /**
     * 发货
     */
    sendAmount("sendAmount", "发货"),
    /**
     * 发货数量
     */
    sendQty("sendQty", "发货数量"),
    /**
     * 退货
     */
    returnAmount("returnAmount", "退货"),
    /**
     * 退货数量
     */
    returnQty("returnQty", "退货数量"),
    /**
     * 收款
     */
    receiveAmount("receiveAmount", "收款"),
    /**
     * 退款
     */
    refundAmount("refundAmount", "退款"),
    /**
     * 系统调账金额
     */
    sysAdjustAmount("sysAdjustAmount", "系统调账金额"),
    /**
     * 系统调账数量
     */
    sysAdjustQty("sysAdjustAmount", "系统调账数量"),
    /**
     * 财务调账数量
     */
    finSysAdjustQty("finSysAdjustQty", "财务调账数量"),
    /**
     * 财务调账金额
     */
    finAdjustAmount("finAdjustAmount", "财务调账金额"),
    /**
     * 应收账款余额
     */
    receivableAmount("receivableAmount", "应收账款余额"),
    /**
     * 保证金退款
     */
    depositRefundAmount("depositRefundAmount","保证金退款"),
    /**
     * 业务日期
     */
    businessDate("businessDate", "业务日期"),
    /**
     * 截止日期
     */
    searchDate("searchDate","截止日期"),
    /**
     * 今天
     */
    today("today","今天");

    String no;
    String name;

    OrderPlaceHoldEunm(String no, String name) {
        this.no = no;
        this.name = name;
    }

    public static OrderPlaceHoldEunm getByName(String name){
        for (OrderPlaceHoldEunm info: OrderPlaceHoldEunm.values()) {
            if(info.name.equals(name)){
                return info;
            }
        }
        return null;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
